/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:					*/
/*	Author:		gong_libin			*/
/*	Date:		2011_09_22			*/
/*	File:		GlbTest.cpp			*/
/********************************************************/

#include "GlbArea.h"

int main(int argc, char* argv[])
{
	CGlbArea CArea;
	char szArea[PACKET_SIZE] = { 0 };
	char szAddr[PACKET_SIZE] = { 0 };
	char szFile[PACKET_SIZE] = "GlbArea.dat";

	if (argc < 2) {
		strcpy(szAddr, "221.122.124.43");
	}
	else {
		strcpy(szAddr, argv[1]);
	}

	if (GLB_SUCCESS != CArea.GlbAreaInit(szFile)) {
		GLB_ERROR("Failed to init.\n");
		return GLB_FAILURE;
	}

	CArea.GlbAreaCheck(szAddr, szArea);

	CArea.GlbAreaDestory();

	GLB_PRINT("Area: %s\n", szArea);

	return GLB_SUCCESS;
}
